-
-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for hashmaps #719
Add support for hashmaps #719
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #719 +/- ##
========================================
- Coverage 61.8% 61.6% -0.1%
========================================
Files 43 43
Lines 2680 2773 +93
Branches 142 161 +19
========================================
+ Hits 1654 1708 +54
- Misses 1013 1052 +39
Partials 13 13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
thanks for the effort @kysre can you merge master on your branch? just so tests might start to run and your PR will look cleaner? |
never mind I've fixed it |
6e8f76c
to
4f815b8
Compare
4f815b8
to
09e53a1
Compare
I fixed the problem with encoding and decoding values. Now I am getting errors like below in tests:
Should I implement hashmap methods in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, just a couple of comments.
I think the problem with the tests you wrote is the ShardedClient
, you can decide to skip those tests or implement them in the ShardedClient
.
If you want your tests to work with shared client just change the get_client
method with make_key
and get_server
based on the key
""" | ||
if client is None: | ||
client = self.get_client(write=False) | ||
try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the try/catch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I implemented hkeys() similar to keys() function. If you think that the try/catch is redundant, I can remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's okay then, it was implemented way before I took this project, maybe we should discuss it in a separate time
django_redis/client/default.py
Outdated
self, | ||
name: str, | ||
client: Optional[Redis] = None, | ||
) -> List: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list of what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it.
I decided to skip |
it's okay, I would merge it and then add TODOs in the issue so that other people can take it a step further and add support other commands methods too |
#598